import React from "react";
import {connect} from "dva";
import {Col, Row} from "antd";


class LoseItem extends React.Component {

  render() {
    const {ind} = this.props.itemScore

    return (
      <div>
        {ind.map(item=>(
            <Row key={item}>
              <Col span={6}>
                {item.name}
              </Col>
              <Col span={6}>
                {item.score}
              </Col>
              <Col span={6}>
                {item.loseScore}
              </Col>
              <Col span={6}>
                {item.loseRate}
              </Col>
              <br/>
            </Row>

        ))}

      </div>
    )
  }
}


export default connect(({global,gaoluDiagnose, loading}) => ({
  itemScore: gaoluDiagnose.itemScore,
  global
}))
(LoseItem);
